<!-- 家教发布订单  -->
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags"%>
<html lang="en">

<head>
	<title>发布订单</title>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<!-- VENDOR CSS -->
	<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

	<link href="jqgrid/css/ui.jqgrid-bootstrap.min.css" rel="stylesheet" />
	<link href="jqgrid/css/bootstrap.min.css" rel="stylesheet"/>
	<link rel="stylesheet" href="assets/vendor/bootstrap/css/bootstrap.min.css">
	
	<link rel="stylesheet" href="assets/vendor/linearicons/style.css">
	<link rel="stylesheet" href="assets/vendor/chartist/css/chartist-custom.css">
	<!-- MAIN CSS -->
	<link rel="stylesheet" href="assets/css/main.css">
	<!-- FOR DEMO PURPOSES ONLY. You should remove this in your project -->
	<link rel="stylesheet" href="assets/css/demo.css">
	<!-- GOOGLE FONTS -->
	
	<!-- ICONS -->
	<link rel="apple-touch-icon" sizes="76x76" href="assets/img/apple-icon.png">
	<link rel="icon" type="image/png" sizes="96x96" href="assets/img/favicon.png">
</head>

<body>
	<!-- WRAPPER -->
	<div id="wrapper">
		<!-- NAVBAR -->
		<nav class="navbar navbar-default navbar-fixed-top">
			<div class="brand">
				<a href=""><img src="assets/img/logo-dark.png" alt="Klorofil Logo" class="img-responsive logo"></a>
			</div>
			<div class="container-fluid">
				<div class="navbar-btn">
					<button type="button" class="btn-toggle-fullwidth"><i class="lnr lnr-arrow-left-circle"></i></button>
				</div>
				<form class="navbar-form navbar-left">
					<div class="input-group">
						<input type="text" value="" class="form-control" placeholder="Search course...">
						<span class="input-group-btn"><button type="button" class="btn btn-primary">Go</button></span>
					</div>
				</form>
				<div class="navbar-btn navbar-btn-right">
					<a class="btn btn-success update-pro" href="#downloads/klorofil-pro-bootstrap-admin-dashboard-template/?utm_source=klorofil&utm_medium=template&utm_campaign=KlorofilPro" title="Upgrade to Pro" target="_blank"><i class="fa fa-rocket"></i> <span>UPGRADE TO PRO</span></a>
				</div>
				<div id="navbar-menu">
					<ul class="nav navbar-nav navbar-right">
						<li class="dropdown">
							<a href="#" class="dropdown-toggle icon-menu" data-toggle="dropdown">
								<i class="lnr lnr-alarm"></i>
								<span class="badge bg-danger">5</span>
							</a>
							<ul class="dropdown-menu notifications">
								<li><a href="#" class="notification-item"><span class="dot bg-warning"></span>欢迎来到家教平台</a></li>
								<li><a href="#" class="notification-item"><span class="dot bg-danger"></span>您有新的优惠待领取</a></li>
								<li><a href="#" class="notification-item"><span class="dot bg-success"></span>您的课程审核中</a></li>
								<li><a href="#" class="notification-item"><span class="dot bg-warning"></span>代办事项</a></li>
								<li><a href="#" class="notification-item"><span class="dot bg-success"></span>家庭教师招募中</a></li>
								<li><a href="#" class="more">查看所有信息</a></li>
							</ul>
						</li>
						<li class="dropdown">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="lnr lnr-question-circle"></i> <span>帮助</span> <i class="icon-submenu lnr lnr-chevron-down"></i></a>
							<ul class="dropdown-menu">
								<li><a href="#">基本使用说明</a></li>
								<li><a href="#">数据处理</a></li>
								<li><a href="#">安全性</a></li>
								<li><a href="#">疑难解决</a></li>
							</ul>
						</li>
						<li class="dropdown">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown"><img src="" class="img-circle" alt=""> <span>用户中心</span> <i class="icon-submenu lnr lnr-chevron-down"></i></a>
							<ul class="dropdown-menu">
								<li><a href="#"><i class="lnr lnr-user"></i> <span>我的设置</span></a></li>
								<li><a href="#"><i class="lnr lnr-envelope"></i> <span>信息</span></a></li>
								<li><a href="#"><i class="lnr lnr-cog"></i> <span>设置</span></a></li>
								<li><a href="#"><i class="lnr lnr-exit"></i> <span>注销</span></a></li>
							</ul>
						</li>
					    
					</ul>
				</div>
			</div>
		</nav>
		<!-- END NAVBAR -->
		<!-- LEFT SIDEBAR -->
		<div id="sidebar-nav" class="sidebar">
			<div class="sidebar-scroll">
				<nav>
					<ul class="nav">
						<li><a href="allCenter" class="active"><i class="lnr lnr-home"></i> <span>主页</span></a></li>
						<li>
							<a href="#subPages" data-toggle="collapse" class="collapsed"><i class="lnr lnr-file-empty"></i> <span>用户功能列表</span> <i class="icon-submenu lnr lnr-chevron-left"></i></a>
							<div id="subPages" class="collapse ">
								<ul class="nav">
								    <li><a href="invite.jsp" class="">聘用家教</a></li>
									<li><a href="userDemand.jsp" class="">发布家教招聘信息</a></li>
									<li><a href="myemp" class="">招聘信息中心</a></li>
									<li><a href="center" class="">订单中心</a></li>
									<li><a href="myinfo" class="">个人中心</a></li>
									<li><a href="userallhis" class="">历史订单</a></li>
									<li><a href="check.jsp" class="">注册成为家教</a></li>
								</ul>
							</div>
						</li>
						<li>
							<a href="#subPagess" data-toggle="collapse" class="collapsed"><i class="lnr lnr-file-empty"></i> <span>家教功能列表</span> <i class="icon-submenu lnr lnr-chevron-left"></i></a>
							<div id="subPagess" class="collapse ">
								<ul class="nav">
									<li><a href="placeOrders.jsp" class="">开设课程</a></li>
									<li><a href="employment" class="">查看招聘信息</a></li>
									<li><a href="tutorCenter" class="">订单中心</a></li>
									<li><a href="tutorallhis" class="">历史订单</a></li>
								</ul>
							</div>
						</li>
					</ul>
				</nav>
			</div>
		</div>
		<!-- END LEFT SIDEBAR -->
		<!-- MAIN -->
		<div class="main">
			<!-- MAIN CONTENT -->
			<div class="main-content">
				<div class="container-fluid">
					<!-- OVERVIEW -->
					<div class="panel panel-headline">
						<div>							
								<!-- 在这里编写 -->
								<span style="color:green">${request.tip}</span> <br>
								请填写发布课程信息：
								<form class="form-horizontal" action="issue" method="post">
								
									
   								 	
									<div class="form-group">
    									<label for="type" class="col-sm-2 control-label">年级选择：</label>
   								 	<div class="col-sm-10">
      									<select name = "ord.type" class="form-control" id="type" style="width:150px" >
										<option value=""
									    >全部</option>
									    <option value="小学一年级" >小学一年级</option>
									    <option value="小学二年级" >小学二年级</option>
									    <option value="小学三年级" >小学三年级</option>
									    <option value="小学四年级" >小学四年级</option>
									    <option value="小学五年级" >小学五年级</option>
									    <option value="小学六年级" selected="selected">小学六年级</option>
									    <option value="初中一年级">初中一年级</option>
									    <option value="初中二年级">初中二年级</option>
									    <option value="初中三年级">初中三年级</option>
									    <option value="高中一年级">高中一年级</option>
									    <option value="高中二年级">高中二年级</option>
									    <option value="高中三年级">高中三年级</option>
										</select>
    								</div>
 								 	</div>
 								 	
										<div class="form-group">
    									<label for="course" class="col-sm-2 control-label">课程科目选择：</label>
   								 	<div class="col-sm-10">
      									<select name = "ord.course" class="form-control" id="course" style="width:150px" >
										<option value=""
									    >全部</option>
									    <option value="语文" >语文</option>
									    <option value="数学" selected="selected">数学</option>
									    <option value="英语" >英语</option>
									    <option value="化学" >化学</option>
									    <option value="物理" >物理</option>
									    <option value="音乐" >音乐</option>
									    <option value="美术">美术</option>
									    <option value="生物">生物</option>
									    <option value="地址">地理</option>
									    <option value="政治">政治</option>
										</select>
    								</div>
 								 	</div>
																						
									<div class="form-group">
    									<label for="time" class="col-sm-2 control-label">授课时间：</label>
   								 	<div class="col-sm-10">
      									<input type="text" class="form-control" id="time" name="ord.date" placeholder="请输入授课时间">
    								</div>
 								 	</div>
 								 	
 								 	<div class="form-group">
    									<label for="address" class="col-sm-2 control-label">理想授课区域：</label>
   								 	<div class="col-sm-10">
      									<input type="text" class="form-control" id="address" name="ord.address" placeholder="请输入您所在的中心地址或者可辐射服务的区域">
    								</div>
 								 	</div>
 								 	
 								 	<div class="form-group">
    									<label for="cost" class="col-sm-2 control-label">价格(元/小时)：</label>
   								 	<div class="col-sm-10">
      									<input type="string" class="form-control" id="cost" name="ord.price" placeholder="请输入您发布课程的初步价格">
    								</div>
 								 	</div>
									
									<div class="form-group">
    									<label for="presentation" class="col-sm-2 control-label">课程介绍：</label>
   								 	<div class="col-sm-10">
      									<input type="text" class="form-control" id="presentation" name="ord.needOrPresentation" placeholder="请输入您发布课程的介绍">
    								</div>
 								 	</div>
 								 	
 								 	<div class="form-group">
    									<div class="col-sm-offset-2 col-sm-10">
     										 <button type="submit" id="submit" class="btn btn-default">发布课程</button>
     										 <button class="btn btn-default" id="resetBtn">重置信息</button>
    									</div>
 									</div>
 								 	
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	
	<!-- END WRAPPER -->
	<!-- Javascript -->
	<script src="assets/vendor/jquery/jquery.min.js"></script>
	<script src="assets/vendor/bootstrap/js/bootstrap.min.js"></script>
	<script src="assets/vendor/jquery-slimscroll/jquery.slimscroll.min.js"></script>
	<script src="assets/vendor/jquery.easy-pie-chart/jquery.easypiechart.min.js"></script>
	<script src="assets/vendor/chartist/js/chartist.min.js"></script>
	<script src="assets/scripts/klorofil-common.js"></script>
	<script>
   
	$(document).ready(function(){	//重置按钮事件				
		$("#resetBtn").off().on("click",function(){					
			$("#time").val("");					
			$("#address").val("");		
			$("#cost").val("");					
			$("#presentation").val("");
		});			
	});	
	
	$(function() {
		var data, options;

		// headline charts
		data = {
			labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
			series: [
				[23, 29, 24, 40, 25, 24, 35],
				[14, 25, 18, 34, 29, 38, 44],
			]
		};

		options = {
			height: 300,
			showArea: true,
			showLine: false,
			showPoint: false,
			fullWidth: true,
			axisX: {
				showGrid: false
			},
			lineSmooth: false,
		};

		new Chartist.Line('#headline-chart', data, options);


		// visits trend charts
		data = {
			labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
			series: [{
				name: 'series-real',
				data: [200, 380, 350, 320, 410, 450, 570, 400, 555, 620, 750, 900],
			}, {
				name: 'series-projection',
				data: [240, 350, 360, 380, 400, 450, 480, 523, 555, 600, 700, 800],
			}]
		};

		options = {
			fullWidth: true,
			lineSmooth: false,
			height: "270px",
			low: 0,
			high: 'auto',
			series: {
				'series-projection': {
					showArea: true,
					showPoint: false,
					showLine: false
				},
			},
			axisX: {
				showGrid: false,

			},
			axisY: {
				showGrid: false,
				onlyInteger: true,
				offset: 0,
			},
			chartPadding: {
				left: 20,
				right: 20
			}
		};

		new Chartist.Line('#visits-trends-chart', data, options);


		// visits chart

		new Chartist.Bar('#visits-chart', data, options);


		// real-time pie chart
		var sysLoad = $('#system-load').easyPieChart({
			size: 130,
			barColor: function(percent) {
				return "rgb(" + Math.round(200 * percent / 100) + ", " + Math.round(200 * (1.1 - percent / 100)) + ", 0)";
			},
			trackColor: 'rgba(245, 245, 245, 0.8)',
			scaleColor: false,
			lineWidth: 5,
			lineCap: "square",
			animate: 800
		});

		var updateInterval = 3000; // in milliseconds

		setInterval(function() {
			var randomVal;
			randomVal = getRandomInt(0, 100);

			sysLoad.data('easyPieChart').update(randomVal);
			sysLoad.find('.percent').text(randomVal);
		}, updateInterval);

		function getRandomInt(min, max) {
			return Math.floor(Math.random() * (max - min + 1)) + min;
		}

	});
	

	
	</script>
</body>

</html>